package com.soft.javase.day02.practice.order;/**
 * @desc TODO
 * @author yzg
 * @date   2025/4/16
 */
public class Goods {
    private String name;
    private double price;
    private int quantity;
    private String description;

    public Goods(String name, double price, int quantity, String description) {
        this.name = name;
        this.price = price;
        this.quantity = quantity;
        this.description = description;
    }

    // 显示商品信息
    public void displayInfo() {
        System.out.println("商品名称: " + name);
        System.out.println("价格: " + price);
        System.out.println("数量: " + quantity);
        System.out.println("描述: " + description);
    }

    public String getName() { return name; }
    public double getPrice() { return price; }
    public int getQuantity() { return quantity; }
    public String getDescription() { return description; }

}
